<html>
<head>
</head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<style>
.class01{
font-family: cursive;
color: blue;
background-color: aqua;
font-size: 29px;
}
.classbutton{
height: 36px;
width: 76px;
}
</style>
<form name="form1" id="form1" method="post" action="chaotheogio.php">
<table align="center" cellpadding="0" cellspacing="0">

<tr>
<td align="center" colspan="2" style="background-color:aqua"><span class="class01">Chào Theo Giờ</span></td>
</tr>

<tr  style="background-color:lightskyblue" height="50px">
<td><span style="font-size:20px">Nhập giờ:</span></td>
<td><label><input border="1" cellpadding="4"style="height:30px" style="height:bold"type="text" name="gio" id="gio" value="<?php 
	if(isset($_POST["gio"])){echo $_POST["gio"];}?>"/></label></td>
</tr>

<tr height="50px" style="background-color:lightskyblue">
<td colspan="2"align="center"><span style="font-size:35px"><label><!---->
<?php
if(isset($_POST["gio"]))
{
	$gio = $_POST["gio"];
	if($gio>=0 && $gio<13)
	{
		$cau_chao="chào buổi sáng !";
	}
	else if($gio>=13 && $gio<=18)
	{
		$cau_chao="chào buổi chiều !";
	}
	else
	{
		$cau_chao="chào buổi tối !";
	}
	echo $cau_chao;
}
?>
</label></span></td>
</tr>

<tr>
<td colspan="2" align="center" height="50px" style="background-color:aqua"><label><input class="classbutton"name="submit" type="submit" value="Chào"/></label></td>
</tr>
</table>
</form>
</html>